home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 4
/
The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO
/
clang
/
cuj0593.zip
/
1105085B
< prev
next >
Wrap
Text File
|
1993-05-16
|
469b
|
25 lines
// fv1.cpp - a dynamic vector of float (with a possibly
// non-zero low-bound) using a subscripting object
// implemented by inheritance from float_array
#include "fv1.h"
#include <assert.h>
float float_vector::operator[](int i) const
{
assert(i >= low());
const float_array *fa = this;
return (*fa)[i - low()];
}
fa_index float_vector::operator[](int i)
{
assert(i >= low());
float_array *fa = this;
return (*fa)[i - low()];
}